package com.bkgy.controller.frsaHistory.entity.dto;

import lombok.Data;

import java.math.BigDecimal;

@Data
public class SteelFreRes implements Comparable<SteelFreRes> {
    private String typeGroup;
    private int actRoll;
    private int frsaRoll;
    private BigDecimal freRate;

    @Override
    public int compareTo(SteelFreRes res) {
        if (res.getActRoll() > actRoll)
            return 1;
        else if (res.getActRoll() < actRoll)
            return -1;
        else return 0;
    }
}
